<template>
	<view class="collectionItem_styles">
		<!-- 头像 -->
		<view class="collectionItem_icon_content">
			<image :src="item.icon" mode="" class="collectionItem_icon"></image>
			<image src="../static/mark/mark3.png" mode="" class="collectionItem_mark" v-if="item.isLike"></image>
			<image src="../static/mark/mark3_2.png" mode="" class="collectionItem_mark"  v-if="item.isunLike"></image>
			<image src="../static/mark/mark3_1.png" mode="" class="collectionItem_mark"  v-if="item.isCollection"></image>
		</view>
		
		<!-- 正文 -->
		<view class="collectionItem_main">
			<view class="collectionItem_name">{{item.name}}</view>
			<view class="collectionItem_desc">
				{{item.name}}
				<text v-if="item.isLike">喜欢</text>
				<text v-if="item.isunLike">不喜欢</text>
				<text v-if="item.isCollection">收藏</text>
				了你的经验
			</view>
			<view class="collectionItem_date">{{item.date}}</view>
		</view>
		
		<!-- 图片 -->
		<image :src="item.image" mode="" class=".collectionItem_image" v-if="item.image"></image>
	</view>
</template>

<script>
	export default {
		name: "CollectionItem",
		props: ["item"],
		data() {
			return {

			};
		}
	}
</script>

<style>
	.collectionItem_styles {
		width: 100%;
		box-sizing: border-box;
		padding: 20rpx 20rpx;
		display: flex;
	}
	
	.collectionItem_icon_content {
		width: 100rpx;
		height: 100rpx;
		border-radius: 50% 50%;
		position: relative;
	}
	
	.collectionItem_icon {
		width: 100rpx;
		min-width: 100rpx;
		height: 100rpx;
		border-radius: 50% 50%;
	}
	
	.collectionItem_mark {
		position: absolute;
		width: 50rpx;
		height: 50rpx;
		bottom: 0;
		right: -10rpx;
	}
	
	.collectionItem_image {
		width: 160rpx;
		min-width: 160rpx;
		height: 160rpx;
	}
	
	.collectionItem_main {
		width: 100%;
		box-sizing: border-box;
		padding: 0 15rpx;
	}
	
	.collectionItem_name {
		width: 100%;
		font-size: 16px;
		font-weight: 700;
	}
	
	.collectionItem_desc {
		font-size: 14px;
		margin-top: 10rpx;
	}
	.collectionItem_desc > text {
		color: #F99333;
	}
	
	.collectionItem_date {
		margin-top: 20rpx;
		font-size: 12px;
		color: #8f9199;
	}
</style>
